﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace ApiPrototype.Models
{
    public class ApiResponse<T>
    {
        public bool Success = true;
        public DateTime servertime { get; set; }
        public T data { get; set; }

        public ApiResponse()
        {
            servertime = DateTime.Now;
        }

        public ApiResponse(T data) : this()
        {
            this.data = data;
        }
    }
}